Skip to content

Improve initial page load performance with preconnects and deferred scripts#3

Draft
SH010526 wants to merge 2 commits intomainfrom
codex/analyze-project-purpose
Draft

Improve initial page load performance with preconnects and deferred scripts#3
SH010526 wants to merge 2 commits intomainfrom
codex/analyze-project-purpose

Conversation

@SH010526
Copy link
Owner

Motivation

  • Initial page rendering was being blocked by third-party network handshakes and synchronous script loads, causing slow perceived load times.
  • Reduce render-blocking on first paint and shorten network handshake latency for CDN and Supabase hosts.

Description

  • Added link rel="preconnect" and link rel="dns-prefetch" hints for https://cdn.jsdelivr.net and the Supabase host (https://pqvdexhxytahljultmjd.supabase.co) into the app HTML shells.
  • Added defer to the Supabase SDK script (https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2) across the main HTML files to avoid blocking parsing.
  • Added defer to the LiveKit vendor client script (vendor/livekit-client.umd.js) on the live page to postpone execution until after parsing.
  • Changes were applied to multiple static HTML files such as index.html, live_class.html, classes.html, class_detail.html, create_class.html, login.html, signup.html, settings.html, logout.html, student_dashboard.html, and teacher_dashboard.html.

Testing

  • No automated tests were executed for these static HTML changes.
  • Changes are limited to non-functional, performance-oriented HTML hints and defer attributes only, so no runtime unit tests were run.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments